import request from '@/utils/request'

// 查询sim卡详情列表
export function listsimInfo(query) {
  return request({
    url: '/sim/simPage',
    method: 'get',
    params: query
  })
}

// 查询sim卡详情详细
export function getsimInfo(id) {
  return request({
    url: '/sim/simInfo/' + id,
    method: 'get'
  })
}

// 新增sim卡详情
export function addsimInfo(data) {
  return request({
    url: '/sim/simInfo',
    method: 'post',
    data: data
  })
}

// 修改sim卡详情
export function updatesimInfo(data) {
  return request({
    url: '/sim/simInfo',
    method: 'put',
    data: data
  })
}

// 删除sim卡详情
export function delsimInfo(id) {
  return request({
    url: '/sim/simInfo/' + id,
    method: 'delete'
  })
}

// 导出sim卡详情
export function exportsimInfo(query) {
  return request({
    url: '/sim/simInfo/export',
    method: 'get',
    params: query
  })
}

// /sim/expireStatistics

export function expireStatistics() {
  return request({
    url: '/sim/expireStatistics',
    method: 'get'
  })
}

//获取项目余额\

export function getMoney() {
  return request({
    url: '/sim/getMoney',
    method: 'get'
  })
}



export function usageRanking() {
  return request({
    url: '/sim/usageRanking',
    method: 'get'
  })
}

export function trend() {
  return request({
    url: '/enterprise/boardApply/trend',
    method: 'get'
  })
}

